/*
========================================================================
 Name        : DetailContainerView.h
 Author      : shitou
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef DETAILCONTAINERVIEW_H
#define DETAILCONTAINERVIEW_H

// [[[ begin generated region: do not modify [Generated Includes]
#include <aknview.h>
// ]]] end generated region [Generated Includes]

// [[[ begin [Event Handler Includes]
// ]]] end [Event Handler Includes]

// [[[ begin generated region: do not modify [Generated Constants]
// ]]] end generated region [Generated Constants]

// [[[ begin generated region: do not modify [Generated Forward Declarations]
class CDetailContainer;
// ]]] end generated region [Generated Forward Declarations]
class CTaobaoTrade;
/**
 * Avkon view class for DetailContainerView. It is register with the view server
 * by the AppUi. It owns the container control.
 * @class	CDetailContainerView DetailContainerView.h
 */						
			
class CDetailContainerView : public CAknView
	{
	
	
	// [[[ begin [Public Section]
public:
	// constructors and destructor
	CDetailContainerView();
	static CDetailContainerView* NewL();
	static CDetailContainerView* NewLC();        
	void ConstructL();
	virtual ~CDetailContainerView();
						
	// from base class CAknView
	TUid Id() const;
	void HandleCommandL( TInt aCommand );
	
	// [[[ begin generated region: do not modify [Generated Methods]
	CDetailContainer* CreateContainerL();
	// ]]] end generated region [Generated Methods]
	
	// ]]] end [Public Section]
	void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
	
	// [[[ begin [Protected Section]
protected:
	// from base class CAknView
	void DoActivateL(
		const TVwsViewId& aPrevViewId,
		TUid aCustomMessageId,
		const TDesC8& aCustomMessage );
	void DoDeactivate();
	void HandleStatusPaneSizeChange();
	
	// [[[ begin generated region: do not modify [Overridden Methods]
	// ]]] end generated region [Overridden Methods]
	
	
	// [[[ begin [User Handlers]
	TBool HandleModifySelectedL( TInt aCommand );
	TBool HandleSendSelectedL( TInt aCommand );
	TBool HandleEvaluateSelectedL( TInt aCommand );
	TBool HandleControlPaneRightSoftKeyPressedL( TInt aCommand );
	// ]]] end [User Handlers]
	
	// ]]] end [Protected Section]
	
	
	// [[[ begin [Private Section]
private:
	void SetupStatusPaneL();
	void CleanupStatusPane();
	
	// [[[ begin generated region: do not modify [Generated Instance Variables]
	CDetailContainer* iDetailContainer;
	// ]]] end generated region [Generated Instance Variables]
	CTaobaoTrade* iTrade;//not own
	// [[[ begin generated region: do not modify [Generated Methods]
	// ]]] end generated region [Generated Methods]
	
	// ]]] end [Private Section]
	
	};

#endif // DETAILCONTAINERVIEW_H
